<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="com.jaxplat.commons.Row" %>
<%@ page import="com.rs.util.Utils" %>
<%
    String contextPath = request.getContextPath();
	List hosList = null;
	List parentCatList = null;
	List childCatList = null;
	if(null != request.getAttribute("hosList"))
	{
		hosList = (List)request.getAttribute("hosList");
	}
	if(null != request.getAttribute("parent_cat"))
	{
	    parentCatList = (List)request.getAttribute("parent_cat");
	}
	if(null != request.getAttribute("child_cat"))
	{
	    childCatList = (List)request.getAttribute("child_cat");
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="预约挂号,预约诊疗,门诊预约,网上医院,网上挂号" name="Keywords">
<meta content="预约挂号平台提供各大三甲医院知名专家的网上预约就医服务。同时提供就医咨询、导医陪诊、专家会诊、住院转院、安排手术等服务" name="description">
<title>首页-云南移动无线城市</title>
<link rel="stylesheet" type="text/css" href="<%=contextPath %>/css2/style.css">

<script src="<%=contextPath %>/js/jquery-1.7.2.min.js" type="text/javascript"></script> 
<script src="<%=contextPath %>/js/common.js" type="text/javascript"></script> 
<script src="<%=contextPath %>/js/easing.js" type="text/javascript"></script> 
<script type="text/javascript" src="<%=contextPath %>/js/slide.js"></script> 
<script type="text/javascript" src="<%=contextPath %>/js/common.js"></script> 
<script type="text/javascript">
$(function(){
	//slide
	$(".slideUl").slide({//重点专科自动滚动
		li_size:6, //每次滚动li个数,默认一屏
		speed:2000, //速度：数值越大，速度越慢（毫秒）默认500
		timer:7000, //不需要自动滚动删掉该参数
		li_w:145, //每个li的宽度（包括border,margin,padding,都要算进去）
		left:"sildeLeft",
		right:"sildeRight"
	});
});


function   reloadOnce(){ 
        var flag= '<%=request.getParameter("flag")%>'; 
        if(flag==null || flag=="" || flag=="null"){ 
                var strURL = window.location; 
                strURL +="&flag=1";   
                document.location.href = strURL; 
        }else{ 
            return  false; 
        } 
      }
       function   reloadThisPage(){ 
	   setTimeout("reloadOnce()",1);//0.001秒后刷新 
         } 



</script>

<!--[if IE 6]>
 <style type="text/css">
 .w942m {
	width:942px;
	margin:0 auto;
	margin-top:150px;
}
.main_left .main_box_title {
	background: url("../images/h4bg.png") no-repeat scroll left top transparent;
	height:43px;
	margin-left:-10px;
	position:absolute;
	top:10px;
}
 </style>
<![endif]-->

<!--[if IE 7]>
 <style type="text/css">
 .w942m {
	width:942px;
	margin:0 auto;
	margin-top:150px;
}
.main_left .main_box_title {
	background: url("<%=contextPath %>/images/h4bg.png") no-repeat scroll left top transparent;
	height:43px;
	margin-left:-10px;
	position:absolute;
	top:10px;
}
 </style>
<![endif]-->

</head>
<body>
<%=request.getSession().getAttribute("headerContentWeb") %>
<div class="guahao"> 
  <!--start header-->
	<%@ include file="head.jsp"%> 
  <!--end header-->
  <div class="clear mb8"></div>
  <!--start main-->
  <div class="main w942m">
    <div class="main_left fl">
      <div class="main_box">
        <div class="main_box_title">
          <div class="titleleft fl"></div>
          <div class="left_titlemain fl">
            <h4 class="h4 w80">从医院开始</h4>
          </div>
          <div class="titleright fl"></div>
        </div>
        <div class="left_main_box_cont">
          <div class="tabcon">
            <ul class="dlist">
              <%
              	if(null != hosList)
              	{
              	    for(int i=0; i < hosList.size();i++)
              	    {
              	        Row hos = (Row)hosList.get(i);
              	        
              %>
              	<li>
              		<a  href="<%=contextPath %>/web2/hosAction.do?method=viewHos&hospital_id=<%=hos.getLong("id") %>">
              			<%=hos.getString("name") %>
              		</a>
              	</li>
              <% 
              	    }
              	}
              %>
            </ul>
          </div>
        </div>
        <div class="left_box_bottom mb8"></div>
      </div>
      <div class="main_box">
        <div class="main_box_title">
          <div class="titleleft fl"></div>
          <div class="left_titlemain fl">
            <h4 class="h4">从专科开始</h4>
          </div>
          <div class="titleright fl"></div>
        </div>
        <div class="left_main_box_cont">
          <div class="depcat">
			
              <%
              	if(null != parentCatList)
              	{
              	    for(int i=0; i < parentCatList.size();i++)
              	    {
              	        Row parentCat = (Row)parentCatList.get(i);
              	        if("y".equalsIgnoreCase(parentCat.getString("home_display")))
              	        {
              	        	
              %>
		          <h4><a target="_blank" href="<%=contextPath %>/web2/secAction.do?method=searchSec&pc=<%=parentCat.getString("id") %>">
		          	<%=parentCat.getString("name") %></a>
		          <span title="剩余号源"></span></h4>
		          <ul class="dlist">
			          	<%
			          	if(null != childCatList)
			          	{
			          	    
			          	    for(int j=0; j<childCatList.size(); j++)
			          	    {
			          	        Row childCat = (Row)childCatList.get(j);
			          	        if(childCat.getLong("parent_id") == parentCat.getLong("id"))
			          	        {
			          	%>
		            	<li>
		            	<a target="_blank" href="<%=contextPath %>/web2/secAction.do?method=searchSec&pc=<%=parentCat.getString("id") %>&cc=<%=childCat.getString("id") %>"><%=childCat.getString("name") %></a>
		            	<span title="剩余号源"></span>
		            	</li>
			            <%
			          	        }
			          	    }
			          	}
			            %>
		            <div class="clear"></div>
		          </ul>
              <% 
              	        }
              	    }
              	}
              %>
	          <ul class="dlist dlist_b">
              <%
              	if(null != parentCatList)
              	{
              	    for(int i=0; i < parentCatList.size();i++)
              	    {
              	        Row parentCat2 = (Row)parentCatList.get(i);
              	        if("n".equalsIgnoreCase(parentCat2.getString("home_display")))
              	        {
              	        	
              %>
	            	<li><a target="_blank" href="<%=contextPath %>/web2/secAction.do?method=searchSec&pc=<%=parentCat2.getString("id") %>"><%=parentCat2.getString("name") %></a><span title="剩余号源"></span></li>
	          <%
              	
              	        }
              	    }
              	}
	          %>
	            <div class="clear"></div>
	          </ul>
	          
          </div>
        </div>
        <div class="left_box_bottom mb8"></div>
      </div>
    </div>
    <!--end main_left-->
    <%@ include file="right_1.jsp"%> 
    <!--end main_right--> 
  </div>
  <!--end main-->
  <div class="clear"></div>
  <div class="keynote w942">
    <div class="main_box_title">
      <div class="titleleft fl"></div>
      <div class="left_titlemain keynote_titlemain fl">
        <h4 class="h4">合作医院</h4>
      </div>
      <div class="titleright fl"></div>
    </div>
    <!--end main_box_title-->
    <div class="left_main_box_cont slide">
      <div class="slideBox">
      <span class="sildeLeft"><img src="<%=contextPath %>/images/left_btn.jpg" style="margin-right:10px;"></span> 
      <span class="sildeRight"><img src="<%=contextPath %>/images/right_btn.jpg"></span>
        <div class="slideUl">
          <ul style="margin-left: 0px; ">
              <%
              	if(null != hosList)
              	{
              	    for(int i=0; i < hosList.size();i++)
              	    {
              	        Row hos = (Row)hosList.get(i);
              	        
              %>
	            <li> 
	            	<a target="_blank" title="" href="<%=contextPath %>/web2/hosAction.do?method=viewHos&hospital_id=<%=hos.getLong("id") %>">
	            		 <img alt="" width="133" height="103" src="<%=hos.getString("path") %>"></a>
	              	<p class="c_b" title="">
	              		<a target="_blank" title="" href="<%=contextPath %>/web2/hosAction.do?method=viewHos&hospital_id=<%=hos.getLong("id") %>">
	              		<%=hos.getString("name") %>
	              		</a>
	              	</p>
	            </li>
              <% 
              	    }
              	}
              %>

           
          </ul>
        </div>
      </div>
    </div>
    <!--end left_main_box_cont-->
    <div class="keynote_box_bottom mb8"></div>
  </div>
</div>
<%=request.getSession().getAttribute("footerContentWeb") %>
</body>
</html>